import ajax from "@/utils/request";
//导入接口文件
import '../mockData/userMock'
//获取课程列表
export function getCourseList(data:any){
    return ajax({
        url:'/api/getCourseList',
        method:'post',
        data
    })
}
//获取分类列表
export function getCategoryList(data:any){
    return ajax({
        url:'/api/getCategoryList',
        method:'post',
        data
    })
}
//获取热门类别列表
export function gethotCategoryList(data:any){
    return ajax({
        url:'/api/gethotCategoryList',
        method:'post',
        data
    })
}
//获取热门课程列表
export function gethotCourseList(data:any){
    return ajax({
        url:'/api/gethotCourseList',
        method:'post',
        data
    })
}
//获取热门老师列表
export function gethotTeacherList(data:any){
    return ajax({
        url:'/api/gethotTeacherList',
        method:'post',
        data
    })
}
//本月热门老师++我的关注老师
export function gethotTeacherMonthList(data:any){
    return ajax({
        url:'/api/gethotTeacherMonthList',
        method:'post',
        data
    })
}
//获取详情页标签列表
export function gettabList(data:any){
    return ajax({
        url:'/api/gettabList',
        method:'post',
        data
    })
}
//获取学员信息
interface iStudent{
    icon?:string,
    name?:string,
    commentTime?:string,
    description?:string
}
export function getstudentList(data:iStudent){
    return ajax({
        url:'/api/getstudentList',
        method:'post',
        data
    })
}
//详情--课程
export function getdetailcouresepicList(data:any){
    return ajax({
        url:'/api/getdetailcouresepicList',
        method:'post',
        data
    })
}
export function getCourseDetail(data:any){//获取热门课程 点开的详情
    return ajax({
        url:'/api/getCourseDetail',
        method:'post',
        data
    })
}